<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		
		<div id="app">
			<p>{{message}}小王</p>
		</div>
		
		<script id="tp1" type="text/x-template">
			<div>
			<p>{{message}}小李</p>
			</div>
		</script>
		
		<script>
			
			var app = Vue.createApp({
				//template:"<div>{{message}}，小明</div>",
				template:"#tp1",
				data(){
					return{
						message:"Hello Vue!"
					}
				}
			});
			
			var vm = app.mount("#app");
			
		</script>
		
	</body>
</html>
